package com.jianxiu.dao.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.jianxiu.bean.User;

@Mapper
public interface UserMapper {
    User getByOpenid(@Param("openid") String openid);

    int create(User user);

    User getById(@Param("id") Long id);

    int update(User user);

    List<User> list(Map<String, Object> param);

    int count(Map<String, Object> sp);
}
